import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class CreateCustomerDto {
    @ApiProperty({ description:'用户姓名'})
    @IsNotEmpty({ message:'用户姓名必填' })
    readonly userName:string

    @ApiProperty({ description:'公司名称'}) 
    @IsNotEmpty({ message:'公司名称必填' })
    readonly company:string

    
    @ApiProperty({ description:'联系电话'})
    @IsNotEmpty({ message:'联系电话必填' })
    readonly phone:number

    @ApiProperty({ description:'邮箱'})
    @IsNotEmpty({ message:'邮箱必填' })
    readonly email:string
 
    @ApiProperty({ description:'留言'})
    @IsNotEmpty({ message:'留言信息必填' })
    readonly message:string
} 

export class DeleteCustomerDto {
    
}